<template>
  <div class="app-container">
    <el-card>
      <el-tabs v-model="activeName" @tab-click="handleClick">
        <el-tab-pane label="人员信息" name="first" :lazy="true">
          <staffBasic />
        </el-tab-pane>
        <el-tab-pane label="往来单位管理" name="secord" :lazy="true">
          <supply />
        </el-tab-pane>
        <el-tab-pane label="商品信息" name="three" :lazy="true">
          <commodity />
        </el-tab-pane>
         <el-tab-pane label="商品单位" name="four" :lazy="true">
          <material />
        </el-tab-pane>
        <el-tab-pane label="商品分类" name="five" :lazy="true">
          <classification />
        </el-tab-pane>
        <el-tab-pane label="货架类型" name="six" :lazy="true">
          <locationType />
        </el-tab-pane>
      </el-tabs>
    </el-card>
  </div>
</template>

<script>
  import staffBasic from '../nccBasic/staffBasic.vue'
  import supply from '../nccBasic/supply.vue'
  import commodity from '../nccBasic/commodity.vue'
  import material from '../nccBasic/material.vue'
  import classification from '../nccBasic/classification.vue'
  import locationType from "@/views/index/locationType/index.vue";
  export default {
    data() {
      return {
        activeName: 'first'
      }
    },
    components: {
      staffBasic,
      supply,
      commodity,
      locationType,
      material,
      classification,
    },
    methods: {
      handleClick(tab, event) {
        console.log(tab, event);
      }
    }
  }
</script>

<style scoped>
  .app-container {
    padding: 20px;
  }

  .el-card {
    margin-bottom: 20px;
  }

  .btn el-button {
    margin-bottom: 20px;
  }

  .el-pagination {
    float: right;
    margin: 20px;
  }
</style>
